const route = require(`express`).Router()


// const upload = multer({ dest: `static/upload/` })



route.get(`/upload`, (req, res) => {
    res.render(`upload`)
})

const upload = require(`../static/js/place`)
route.post(`/upload`, upload.single('img'), (req, res) => {
    console.log(1111);
    res.send({
        code: -1,
        massage: "上传成功"
    })


})

module.exports = route